Source File
graphite.go
Belonging Package
github.com/K-Phoen/grabana/target/graphite
package graphiteimport// Option represents an option that can be used to configure a graphite query.type Option func(target *Graphite)// Graphite represents a graphite query.type Graphite struct {Builder *sdk.Target}// New creates a new Graphite query.func ( string, ...Option) *Graphite {:= &Graphite{Builder: &sdk.Target{Target: ,},}for , := range {()}return}// Ref sets the reference ID for this query.func ( string) Option {return func( *Graphite) {.Builder.RefID =}}// Hide the query. Grafana does not send hidden queries to the data source,// but they can still be referenced in alerts.func () Option {return func( *Graphite) {.Builder.Hide = true}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |